package com.baby.work.domain.ioc;


import org.springframework.stereotype.Component;

@Component
public class TestIoc {

    private String work;
    TestIoc() {
        System.out.println("default Construction");
        this.work = "default";
    }

    public TestIoc(String work) {
        this.work = work;
        System.out.println(work + " Construction");
    }

    public String doSomeWork() {
        System.out.println("do some work: " + this.work);
        return "do some work: " + this.work;
    }
}
